/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.sui.bigdata.flink.sql.core.metric;

/**
 * defined customer metric name
 * Date: 2019/07/10
 * @author yong_chen@sui.com
 */

public class MetricConstant {

    /**metric name of timeout data*/

    public static final String ASYNC_TIME_OUT_RECORDS = "asyncTimeOutRecords";

    public static final String JOIN_COST_AVG = "joinCostAvg";

    public static final String JOIN_FAIL_RECORDS= "joinFailRecords";

    /**metric name of dirty data*/
    public static final String SUI_DIRTY_DATA_COUNTER = "suiDirtyData";

    public static final String SUI_NUM_RECORDS_IN_COUNTER = "suiNumRecordsIn";

    public static final String SUI_NUM_RECORDS_IN_RATE = "suiNumRecordsInRate";

    public static final String SUI_NUM_BYTES_IN_COUNTER = "suiNumBytesIn";

    public static final String SUI_NUM_BYTES_IN_RATE = "suiNumBytesInRate";

    /**diff of DT_NUM_RECORD_IN_COUNTER ,this metric is desc record num after of deserialization*/
    public static final String SUI_NUM_RECORDS_RESOVED_IN_COUNTER = "suiNumRecordsInResolve";

    public static final String SUI_NUM_RECORDS_RESOVED_IN_RATE = "suiNumRecordsInResolveRate";

    public static final String SUI_NUM_RECORDS_OUT = "suiNumRecordsOut";

    public static final String NUM_FAIL_RECORDS_OUT = "NumFailRecordsOut";

    public static final String SUI_NUM_RECORDS_OUT_RATE = "suiNumRecordsOutRate";

    public static final String SUI_EVENT_DELAY_GAUGE = "suiEventDelay";

    public static final String SUI_TOPIC_PARTITION_LAG_GAUGE = "suiTopicPartitionLag";

    public static final String SUI_TOPIC_GROUP = "topic";

    public static final String SUI_PARTITION_GROUP = "partition";

    public static final String AVG_COMPUTE_Time = "dtAvgComputeTime";
}
